/**
 * 
 */
package com.nwpusp.controller;

import java.util.TimerTask;

/**
 * @author JustinCao
 *
 */
public class GameTickTimerTask extends TimerTask {

	private int tickCnt = 0;
	private GameController controller = null;
	
	public GameTickTimerTask(GameController controller) {
		this.controller = controller;
		Init();
	}
	
	@Override
	public void run() {
		controller.TickModel(tickCnt++);
	}

	public void Init() {
		tickCnt = 0;
	}

}
